package games.ninJumpDx.ui.sound
{
	import flash.media.Sound;
	import flash.media.SoundChannel;
	
	import games.ninJumpDx.data.UIConfig;
	import games.ninJumpDx.tools.Tools;

	public class SoundPlayer
	{
		private var m_sound:Sound;
		private var m_channel:SoundChannel;
		
		public function SoundPlayer()
		{
		}
		
		public function play(name:String):void
		{
			m_sound = Tools.getSoundByName(name,GFrame.MAIN_UI);
			m_channel = m_sound.play();	
		}
	}
}